export const debounce = (fun,delay) =>{
    return function(args){
        let that = this;
        let _args = args;
        clearTimeout(fun.id)
        fun.id = setTimeout(function(){
            fun.call(that,_args)
        },delay)
    }
}